package com.hardware.enums;

/**
 * 门锁系统常量
 *
 * @作者 韩宗森
 * @创建时间 2024年11月01日 15:41
 */
public enum DoorLockEnum implements HasKey {

    LOCK3200(1, "Lock3200"),

    LOCK3200K(2, "Lock3200K"),

    LOCK4200(3, "Lock4200"),

    LOCK4200D(4, "Lock4200D"),

    LOCK5200(5, "Lock5200"),

    LOCK6200(6, "Lock6200"),

    LOCK7200(7, "Lock7200"),

    LOCK7200D(8, "Lock7200D"),

    LOCK9200(9, "Lock9200"),

    LOCK9200T(10, "Lock9200T"),

    A30(11, "A30"),

    A50(14, "A50"),

    A90(18, "A90"),

    A92(22, "A92"),

    ;


    // 状态码
    private final Integer key;

    // 状态名称
    private final String value;

    DoorLockEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public Integer getKey() {
        return this.key;
    }

    public String getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return value;
    }
}
